package com.juyu.miliao.common.constant;

import java.time.LocalDate;

/**
 * @author xuanqicheng
 */
public class CoolSummerActivitiesRedisKey {
    /**
     * 奖池
     */
    private static final String COOL_SUMMER_ACTIVITIES_JACKPOT_KEY = "COOL_SUMMER_ACTIVITIES_JACKPOT";
    /**
     * 用户今日充值金额key
     */
    private static final String COOL_SUMMER_ACTIVITIES_USER_RECHARGE_KEY ="COOL_SUMMER_ACTIVITIES_USER_RECHARGE:";
    /**
     * 用户活动期间充值汇总
     */
    private static final String COOL_SUMMER_ACTIVITIES_USER_COUNT_RECHARGE_KEY ="COOL_SUMMER_ACTIVITIES_USER_COUNT_RECHARGE:";
    /**
     * 用户充值明细
     */
    private static final String COOL_SUMMER_ACTIVITIES_USER_RECHARGE_DETAIL_KEY =
            "COOL_SUMMER_ACTIVITIES_USER_RECHARGE_DETAIL:";

    private static final String COOL_SUMMER_ACTIVITIES_GET_REWARDS_KEY="COOL_SUMMER_ACTIVITIES_GET_REWARDS:";

    /**
     * 统计用户领奖奖励
     */
    private static final String COOL_SUMMER_ACTIVITIES_STATISTICS_GET_REWARDS_KEY =
            "COOL_SUMMER_ACTIVITIES_STATISTICS_GET_REWARDS:";

    /**
     * 获取
     * @return
     */
    public static String getCoolSummerActivitiesJackpotKey(){
        return COOL_SUMMER_ACTIVITIES_JACKPOT_KEY;
    }

    /**
     * 获取用户今日充值金额key
     * @param userId
     * @param localDate
     * @return
     */
    public static String getCoolSummerActivitiesUserRechargeKey(long userId, LocalDate localDate){
        return COOL_SUMMER_ACTIVITIES_USER_RECHARGE_KEY+localDate.toString()+":"+userId;
    }

    public static String getCoolSummerAcitvitiesGetRewardsKey(LocalDate localDate,int activitiesId){
        return COOL_SUMMER_ACTIVITIES_GET_REWARDS_KEY+localDate.toString()+":"+activitiesId;
    }


    public static String getCoolSummerActivitiesStatisticsGetRewardsKey(LocalDate localDate,
                                                                        int activitiesId){
        return COOL_SUMMER_ACTIVITIES_STATISTICS_GET_REWARDS_KEY+localDate.toString()+":"+activitiesId;

    }

    public static String getCoolSummerActivitiesUserRechargeDetailKey(long userId){
        return COOL_SUMMER_ACTIVITIES_USER_RECHARGE_DETAIL_KEY+userId;
    }

    public static String getCoolSummerActivitiesUserCountRechargeKey(long userId){
        return COOL_SUMMER_ACTIVITIES_USER_COUNT_RECHARGE_KEY+userId;
    }


}
